package com.esp.commentdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * Project:spring-boot-new-publish-system-12
 * ClassName:NewsComment
 * Package:com.esp.commentdemo.entity
 * User:CWQ
 * Description:
 *
 * @Author 合肥-陈万琼
 * @Create 2024/5/31 23:36
 * @Version 1.0
 */
@Data
@TableName("tb_news_comment")
public class NewsComment {
    /*
     *评论id
     * */
    @TableId(type = IdType.AUTO)
    private Long commentId;
    /*
     *关联新闻id
     * */
    private Long newsId;
    /*
     *评论人
     * */
    private String commentator;
    /*
     *评论内容
     * */
    private String commentBody;
    /*
     *评论状态
     * 0-未审核 1-审核通过
     * */
    private Byte commentStatus;
    /*
     *是否已删除
     * 0-未删除 1-已删除
     * */
    private Byte isDeleted;
    /*
     * 创建时间
     * */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
